//
// Created by 沈昊 on 2021/12/6.
//
#include <Util/logger.h>
int main(){
    //初始化日志系统
    using namespace toolkit;
    Logger::Instance().add(std::make_shared<ConsoleChannel> ());
    Logger::Instance().add(std::make_shared<FileChannel>());
    Logger::Instance().setWriter(std::make_shared<AsyncLogWriter>());

    InfoL << "yes";
    WarnL << "warning";
    ErrorL << "error";
    return 0;
}